const http = require('http')
const server = http.createServer()
server.on('request',(req,res) =>{

    const url=req.url
    const method=req.method
    const str=`your request url is${url},and request method is${method}`
    console.log(req.url)
    res.end(str)
})
server.listen(80,function(){
    console.log('server running at http://127.0.1')
})